import request from '@/utils/request'
export function SysRole(params) {
  return request({
    url: '/sys/role',
    params
  })
}
export function SysRolepost(data) {
  return request({
    url: '/sys/role',
    method: 'post',
    data
  })
}
export function SysRoleDel(id) {
  return request({
    url: '/sys/role/' + id,
    method: 'delete'
  })
}
export function SysRoleput(data) {
  return request({
    url: '/sys/role/' + data.id,
    method: 'put',
    data
  })
}
export function Company(id) {
  return request({
    url: `/company/${id}`
  })
}
export function SysRoleGet(id) {
  return request({
    url: `/sys/role/${id}`
  })
}
